package cn.tedu.apps_system.service;

import cn.tedu.apps_system.base.response.JsonResult;
import cn.tedu.apps_system.pojo.dto.OrderCreateRequestDto;
import cn.tedu.apps_system.pojo.dto.OrderReviseDto;
import cn.tedu.apps_system.pojo.vo.OrderVO;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface OrderService {

    JsonResult createOrder(OrderCreateRequestDto request, HttpSession session);

    JsonResult reviseOrder(OrderReviseDto orderReviseDto, HttpSession session);

    JsonResult delete(OrderReviseDto orderReviseDto, HttpSession session);

    JsonResult select(OrderReviseDto orderReviseDto, HttpSession session);

    JsonResult selectAll(OrderReviseDto orderReviseDto, HttpSession session);

    OrderVO getById(Long id);

    List<OrderVO> listByMerchantId(Long merchantId);

    List<OrderVO> listByMerchantIdAndStatus(Long merchantId, Integer status);

    void delete(Long id);
}
